/**
 * 快捷支付绑定推荐关系
 */
import * as client from './client'
import urlConfig from './urlConfig'

export class GetUserVoucherByCodeRst
{
    public userCode?:string;
}

export class GetUserVoucherByCodeRpn
{
    //推荐者的用户头像
    public referralUserHeadPortraitURL: string;
    //推荐者的用户名字
    public referralUserName: string;
    //推荐者的用户盖网号
    public referralUserCode: string;
    //用户是否获得了代金券
    public IsGetVouchers: boolean;
    //代金券金额(所有代金券总面值)
    public vouchersAmount:number;
}
/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: GetUserVoucherByCodeRst,userInfo:any) {
    const data = await client.exec(urlConfig.getUserVoucherByCode, rst,userInfo);
    return JSON.parse(data) as client.RSM<GetUserVoucherByCodeRpn>;
}